﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="results.aspx.cs" Inherits="results" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>成果展示</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <!--内容开始-->
    <div class="main">
    <%
    if(teamWorkInfos!=null)
    {
        int i = 1; 
    foreach(SAS.Toolkit.TeamWorkInfos workinfo in teamWorkInfos){%>
        <div class="nr" style="background: url(<%=workinfo.Picbak%>);" id="post-0<%=i %>">
            <div class="maincot">
                <p class="nr1">
                    <img alt="<%=workinfo.Name %>" src="<%=workinfo.Listpic %>" /></p>
                <div class="nr2">
                    <strong><%=workinfo.Name %></strong>
                    <p class="mar_top">
                        <span class="f_999">完成时间：</span><%=Convert.ToDateTime(workinfo.End).ToString("yyyy-MM-dd")%></p>
                    <p>
                        <span class="f_999">参与者：</span>
                        
                        <%
                            if (workinfo.Members.Length > 0)
                            {
                                string[] cy = workinfo.Members.Split(',');
                                for (int q = 0; q < cy.Length; q++)
                                {
                                    if (GetCacheMemberInfo(cy[q].ToString()) != null)
                                    {
                                %>
                                <a title="<%=GetCacheMemberInfo(cy[q].ToString()).Nickname%>" href="<%=cy[q] %>.html"><%=GetCacheMemberInfo(cy[q].ToString()).Nickname%></a>
                                <% 
                            }
                                }
                            }
         %>
                        
                        </p>
                    <p>
                        <span class="f_999">链接地址：</span><%=workinfo.Url %></p>
                    <p>
                        <span class="f_999">作品简介：</span></p>
                    <p>
                        <%if (removeHtml(workinfo.Desc).Length > 150)
                          { %>
                        <%=removeHtml(workinfo.Desc).Substring(0, 150)%>...
                        <%}
                          else
                          { %>
                        <%=removeHtml(workinfo.Desc)%>
                        <%} %> [<a href="resultifo-<%=workinfo.Actid %>.html" class="zt3">更多...</a>]</p>
                    <ul class="nr2an prev_next">
                        <%if (i > 1)
                          { %>
                        <li><a href="javascript:scroller('post-0<%=i-1 %>', 600);">prev</a></li>
                        <%}
                          if (i < teamWorkInfos.Length)
                          {%>
                        <li class="next"><a href="javascript:scroller('post-0<%=i+1 %>', 600);">next</a></li>
                        <%} %>
                    </ul>
                </div>
            </div>
        </div> 
    <%i++;
    }} %>
    </div>
    <!--内容结束-->
</asp:Content>
